package com.bean.vo;

import com.bean.entity.Classes;
import com.bean.entity.StudentInfo;
import com.bean.entity.SubjectInfo;
import com.bean.entity.Teachers;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生成绩表
 */
public class StudentScoreVo implements Serializable {
    private Integer id;
    private Long studentId;
    private Long classesId;
    private Integer subjectId;
    private Integer teacherId;
    private Double score;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date testTime;

    private StudentInfo studentInfo;
    private SubjectInfo subjectInfo;
    private Classes classes;
    private Teachers teachers;

    public StudentScoreVo(Long studentId) {
    }

    @Override
    public String toString() {
        return "StudentScoreVo{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", classesId=" + classesId +
                ", subjectId=" + subjectId +
                ", teacherId=" + teacherId +
                ", score=" + score +
                ", testTime=" + testTime +
                ", studentInfo=" + studentInfo +
                ", subjectInfo=" + subjectInfo +
                ", classes=" + classes +
                ", teachers=" + teachers +
                '}';
    }

    public Classes getClasses() {
        return classes;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Teachers getTeachers() {
        return teachers;
    }

    public void setTeachers(Teachers teachers) {
        this.teachers = teachers;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    public Long getClassesId() {
        return classesId;
    }

    public void setClassesId(Long classesId) {
        this.classesId = classesId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Date getTestTime() {
        return testTime;
    }

    public void setTestTime(Date testTime) {
        this.testTime = testTime;
    }

    public StudentInfo getStudentInfo() {
        return studentInfo;
    }

    public void setStudentInfo(StudentInfo studentInfo) {
        this.studentInfo = studentInfo;
    }

    public SubjectInfo getSubjectInfo() {
        return subjectInfo;
    }

    public void setSubjectInfo(SubjectInfo subjectInfo) {
        this.subjectInfo = subjectInfo;
    }
}
